import request from "@/utils/request";

export function loginAPI(user) {
    return request({
        url:'/login',
        method:'post',
        data:user,
        headers: {
            'content-type':"application/json",
        }
    })
}

export function registerAPI(user) {
    return request({
        url:'/register',
        method:'post',
        data:user,
        headers: {
            'content-type':"application/json",
        }
    })
}